home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
DJLSR111.ZIP
/
libsrc
/
c
/
dos
/
getdfree.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-04
|
315b
|
15 lines
#include <dos.h>
void getdfree( unsigned char drive, struct dfree *dtable)
{
union REGS regs;
regs.h.ah = 0x36;
regs.h.dl = drive;
intdos( ®s, ®s);
dtable -> df_sclus = regs.x.ax;
dtable -> df_avail = regs.x.bx;
dtable -> df_bsec = regs.x.cx;
dtable -> df_total = regs.x.dx;
}